package com.pig4cloud.pig.demo.feign.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 订单实体类
 * Created by caoxuel on 2020/10/19 17:17
 */
@TableName("purchase2")
@Data
public class Order {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 用户的id
     */
    @TableField("u_id")
    private Long uid;

    /**
     * 文章id
     */
    private Long aid;

    /**
     * 订单创建时间
     */
    @TableField("created_time")
    private Date createdTime;



}
